package com.mohan.config;

import com.mohan.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@PropertySource(value = {"classpath:/person.properties"})
@ComponentScan("com.mohan.bean")
public class MainConfigOfPropertyValues {
    @Bean
    public Person person() {
        return new Person("modaren",18);
    }
}
